package com.uml.umlwork.dto.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.validation.constraints.NotNull;

/**
 * @author Siki
 * @date 2020/12/21
 */
@ApiModel("账号注册DTO")
@Getter
@Setter
@NoArgsConstructor
public class UserSignUpDTO {
    @ApiModelProperty("用户名")
    @NotNull(message = "用户名不能为空")
    String username;

    @ApiModelProperty("密码")
    @NotNull(message = "密码不能为空")
    String password;

    @ApiModelProperty("姓名")
    @NotNull(message = "姓名不能为空")
    String name;

    @ApiModelProperty("电话")
    @NotNull(message = "电话不能为空")
    String phone;

    @ApiModelProperty("身份")
    @NotNull(message = "身份不能为空")
    String role;
}
